package com.hanthink.system.domain.repair;

import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * @author Administrator 维修记录
 */
@Data
public class RepairRecordInfo {

    /**
     * 维修单id
     */
    private Long id;
    /**
     * 设备Key
     */
    private Long eqKey;
    /**
     * 工厂KEY
     */
    private Long siteKey;
    /**
     * 状态
     */
    private String status;
    /**
     * 维修编号
     */
    private String repairCode;
    /**
     * 报修单ID
     */
    private Long requestId;
    /**
     * 维修人
     */
    private String repairUser;
    /**
     * 维修人姓名
     */
    private String repairUserName;
    /**
     * 故障类型
     */
    private String faultType;
    /**
     * 备件编码
     */
    private String sparePartCode;
    /**
     * 维修类型
     */
    private String type;
    /**
     * 是否选中
     */
    private boolean checked;
    /**
     * 报修单号
     */
    private String requestCode;
    /**
     * 报修时间
     */
    private String requestTime;
    /**
     * 报修人
     */
    private String requestUser;
    /**
     * 报修人姓名
     */
    private String requestUserName;
    /**
     * 设备编码
     */
    private String equipName;
    /**
     * 设备名称
     */
    private String equipDesc;
    /**
     * 审核人
     */
    private String checkUser;
    /**
     * 审核时间
     */
    private String checkTime;
    /**
     * 维修开始时间
     */
    private String startTime;
    /**
     * 维修完成时间
     */
    private String endTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 审核日期时间
     */
    private String auditdatetime;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 整改建议
     */
    private String rectificationsuggestions;
    /**
     * 微信状态
     */
    private Long wechatstatus;
    /**
     * 合并类型
     */
    private String mergetype;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 合并规模
     */
    private String mergescale;
    /**
     * 总维护时间
     */
    private String totalmaintenancetime;
    /**
     * 接单时间
     */
    private String orderreceivingtime;
    /**
     * 等待时间
     */
    private String waitingtime;
    /**
     * 并发维修时间
     */
    private String concurrentrepairtime;
    /**
     * 确认并发维修时间
     */
    private String sureconcurrentrepairtime;
    /**
     * 争议确认并发维修时间
     */
    private String disputesureconcurrentrepairtime;
    /**
     * 争议人
     */
    private String disputeperson;
    /**
     * 争议时间
     */
    private String disputetime;
    /**
     * 紧急维修状态
     */
    private int rushrepairstatus;
    /**
     * 紧急维修时间
     */
    private String rushrepairtime;
    /**
     * 紧急争议确认并发维修时间
     */
    private String rushdisputesureconcurrentrepairtime;
    /**
     * 紧急争议人
     */
    private String rushdisputeperson;
    /**
     * 紧急争议时间
     */
    private String rushdisputetime;
    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 备注日期
     */
    private String remarkrq;

    //图片列表
    private String[] picList;
    //视频列表
    private String[] videoList;
    //语音列表
    private String[] audioList;

    private List<RepairHelpUser> helpUsers;

    public String toStringsj1() {
        return "【报修单】:" + requestCode + ',' +
                "【报修人】:" + requestUser + ',' +
                "【报修时间】:" + requestTime + ',' +
                "【报修内容】:" + remark + ',' +
                "【维修人】:" + checkUser + ',' +
                "【处理结果】:同意";
    }

    public String toStringsj2() {
        return "【报修单】:" + requestCode + ',' +
                "【报修人】:" + requestUser + ',' +
                "【报修时间】:" + requestTime + ',' +
                "【报修内容】:" + remark + ',' +
                "【维修人】:" + checkUser + ',' +
                "【处理结果】:驳回";
    }

    @Override
    public String toString() {
        return "RepairRecordInfo{" +
                "id=" + id +
                ", eqKey=" + eqKey +
                ", siteKey=" + siteKey +
                ", status='" + status + '\'' +
                ", repairCode='" + repairCode + '\'' +
                ", requestId=" + requestId +
                ", repairUser='" + repairUser + '\'' +
                ", repairUserName='" + repairUserName + '\'' +
                ", faultType='" + faultType + '\'' +
                ", sparePartCode='" + sparePartCode + '\'' +
                ", type='" + type + '\'' +
                ", checked=" + checked +
                ", requestCode='" + requestCode + '\'' +
                ", requestTime='" + requestTime + '\'' +
                ", requestUser='" + requestUser + '\'' +
                ", requestUserName='" + requestUserName + '\'' +
                ", equipName='" + equipName + '\'' +
                ", equipDesc='" + equipDesc + '\'' +
                ", checkUser='" + checkUser + '\'' +
                ", checkTime='" + checkTime + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", remark='" + remark + '\'' +
                ", wechatstatus=" + wechatstatus +
                ", picList=" + Arrays.toString(picList) +
                ", videoList=" + Arrays.toString(videoList) +
                ", audioList=" + Arrays.toString(audioList) +
                ", helpUsers=" + helpUsers +
                '}';
    }

    public String toOverTime(){
        return "【维修编号】" + repairCode + ',' +
                " 请及时报修技术员确认";
    }
}